<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/404', function(){
    abort(404);
});



//后台控制器
Route::Controller('/admin/','AdminController');
 //后台商品分类
Route::Controller('/admin/sort','SortController');
//后台订单管理
Route::Controller('/admin/orders','OrdersController');


//前台首页
Route::get('/','IndexController@index');
//头部搜索
Route::match(['get','post'],'/search','IndexController@search');
//商品列表页
Route::Controller('/goods','GoodsController');
// Route::get('/goods/list','GoodsController@index');
